<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible"content="IE=8"><!--以IE8模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=7"><!--以IE7模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE">
	<title>员工新增</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jquery.alert.v1.2/jquery.alert.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jquery_validate/css/validationEngine.jquery.css" >
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/form_table.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery_validate/js/jquery.validationEngine.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery_validate/js/jquery.validationEngine-zh_CN.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.alert.v1.2/jquery.alert.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/customer/customer_edit.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery_city/jquery.cityselect.js"></script>
</head>

<body>
<div id="tt">
    <ul class="tab">
        <li><a href="javascript:;" onclick="goto_basic('{$cust_array.cust_id}');">基本信息</a></li>
        <li><a href="javascript:;" class="selected">详细信息</a></li>
        <li><a href="javascript:;" onclick="goto_work('{$cust_array.cust_id}')">工作信息</a></li>
        <li><a href="javascript:;" onclick="goto_linkman('{$cust_array.cust_id}')">联系人信息</a></li>
    </ul>
    <div title="详细信息">
        <div style="width:98%" class="form-panel">
            <div  id="form-link">
                <div class="easyui-panel" style="padding:5px;border-width: 0px;border-bottom-width: 1px;">
                    <a href="javscript:;" class="easyui-linkbutton" onclick="update_ajax_cust('../../customer/customer/customer_update_detail');" iconCls="icon-save" plain="true" style="width:80px">保存</a>
                    <a href="javscript:;" class="easyui-linkbutton" onclick="reset();" iconCls="icon-reload" plain="true" style="width:80px">重置</a>
                    <a href="javscript:;" class="easyui-linkbutton" onclick="close_tab();" iconCls="icon-undo" plain="true" style="width:80px">关闭</a>
                </div>
            </div>
            <div class="table_main">
                <form action="../../customer/customer/customer_update_base" id="defaultForm" method="post">
                    <input type="hidden" name="cust_id" value="{$cust_array.cust_id}">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tr>
                            <th width="131">名称</th>
                            <th>内容</th>
                        </tr>
                        <tr>
                            <td width="131">微信号：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.wechat_account}" name="wechat_account" placeholder="请输入微信号" /></td>
                        </tr>
                        <tr>
                            <td width="131">婚姻状况：</td>
                            <td>
                                <select name="marry_status_id" id="marry_status_id">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr id="communication">
                            <td width="131">通讯地址省，市，区：</td>
                            <td><select name='communication_province' class="prov"></select>
                                <select name='communication_city' class="city"><option value="">请选择</option></select>
                                <select name='communication_district' class="dist"><option value="">请选择</option></select></td>
                        </tr>
                        <tr>
                            <td width="131">通讯地址：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.communication_address}" name="communication_address" placeholder="请输入通讯地址" /></td>
                        </tr>
                        <tr>
                            <td width="131">通讯地址邮编：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.communication_postcode}" name="communication_postcode" placeholder="请输入邮编" /></td>
                        </tr>
                        <tr>
                            <td width="131">最高学历：</td>
                            <td>
                                <select name="education_status_id" id="education_status_id">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">最高学位：</td>
                            <td>
                                <select name="degree_status_id" id="degree_status_id">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr id="live">
                            <td width="131">居住地址省，市，区：</td>
                            <td><select name='live_province' class="prov"></select>
                                <select name='live_city' class="city"><option value="">请选择</option></select>
                                <select name='live_district' class="dist"><option value="">请选择</option></select></td>
                        </tr>
                        <tr>
                            <td width="131">居住地址：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.live_address}" name="live_address" placeholder="请输入居住地址" /></td>
                        </tr>
                        <tr>
                            <td width="131">居住地址邮编：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.live_postcode}" name="live_postcode" placeholder="请输入邮编" /></td>
                        </tr>
                        <tr>
                            <td width="131">居住状况：</td>
                            <td>
                                <select name="live_status" id="live_status">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>


	<script type="text/javascript">
		$(document).ready(function() {
            $("#marry_status_id").commSelect({url:'../../Common/Common/marray_status',key:"m_id",value:"m_name",id:"{$cust_array.marry_status_id}"});
            $("#education_status_id").commSelect({url:'../../Common/Common/education_status',key:"edu_id",value:"edu_name",id:"{$cust_array.education_status_id}"});
            $("#degree_status_id").commSelect({url:'../../Common/Common/degree_status',key:"deg_id",value:"deg_name",id:"{$cust_array.degree_status_id}"});
            $("#live_status").commSelect({url:'../../Common/Common/live_status',key:"li_id",value:"li_value",id:"{$cust_array.live_status}"});
		});

		$("#communication").citySelect({required:false,prov:'{$cust_array.communication_province}',city:'{$cust_array.communication_city}',dist:'{$cust_array.communication_district}'});
		$("#live").citySelect({required:false,prov:'{$cust_array.live_province}',city:'{$cust_array.live_city}',dist:'{$cust_array.live_district}'});
//
//		$("#linkman").citySelect({required:false,prov:'<?php echo $data_links['first_linkman_province'];?>',city:'<?php echo $data_links['first_linkman_city'];?>',dist:'<?php echo $data_links['first_linkman_district'];?>'});
//
//		$("#company").citySelect({required:false,prov:'<?php echo $data_workdetail['company_province'];?>',city:'<?php echo $data_workdetail['company_city'];?>',dist:'<?php echo $data_workdetail['company_district'];?>'});

		$(function() {
//            $('#tt').tabs('select', "详细信息");
//			var tabs = $('#tt').tabs().tabs('tabs');
//			for(var i=0; i<tabs.length; i++) {
//				tabs[i].panel('options').tab.unbind().bind('mouseenter',{index:i},function(e)
//				{
//					$('#tt').tabs('select', e.data.index);
//				});
//			}
		});
	</script>
</body>
</html>